const getters = {
  // 侧边栏
  sidebar: state => state.app.sidebar,
  // 设备信息
  device: state => state.app.device,
  // 简化token取值
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  userInfo: state => state.user.userInfo,
  // 简化公司id获取
  companyId: state => state.user.userInfo.companyId
}
export default getters
